package com.util;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@Component
public class ScheduledTasks {
	@Scheduled(fixedRate=1000)//单位毫秒
	public void test(){
		System.out.println("1秒打印");
	}
}
